import React from "react";

// import { Consumer } from "./context";
import context from "./context";

// const { Consumer } = createContext();

const Child3 = () => {
  return (
    <div>
      child3 -
      <context.Consumer>
        {(value) => {
          return <span>{value.count}</span>;
        }}
      </context.Consumer>
    </div>
  );
};

export default Child3;
